-
-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Problem, Solution, and Impact Sections to Project Pages #3767
Add Problem, Solution, and Impact Sections to Project Pages #3767
Conversation
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
Review availability: Weds 12/7 3-5 pm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @patrickohh -
Great job- It appears that the Project Value Card is rendering correctly- matching the proposed Figma screenshot- for the five projects where project.problem
exists and not the others with the Liquid if statememt. The new 'Value' card seems to be rendering and resizing correctly, and I don't see any unintended effects. Good catch with the edits to the _project-page.scss
-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @patrickohh solid work this looks really good! 👍
Just a couple of edits if possible:
- For small to medium screen sizes, I noticed the sustainable development goal card bumps up against the edge of its container card. Perhaps the CSS could be better adjusted for this screen size range ?
- For mobile screen sizes, the figma from the issue shows a modified design for the sustainable development goal card
Hi @MattPereira , I will look into making the necessary edits as soon as possible! |
|
…ll to medium screen ssizes but having trouble in implementing description for mobile design
Made the changes for the description card to avoid touching the outer div with small to medium screen sizes, however still finding trouble in implementing the mobile design for the description card. None of my media queries seem to work in the redesign. Is there a way to replace one div with another without having the change the whole structure of the html code? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome work, @patrickohh! You developed a section that very closely matches the prototype and with logical class names and a good use of Liquid. I totally understand why you created a new div specifically for mobile as the shift in the elements' placement is tricky to implement here! That said, I think it is possible to work off just the one div you created. I played around with some of the code and got something working using this HTML structure:
<div class='sdg-description-card'>
<h2 class='sdg-card-title title7'>Sustainable Development Goal</h2>
<div class="sdg-description-wrapper">
<img class='sdg-img' src='{{ page.sdg-image-src }}'/>
<div class='sdg-description-grid-item'>{{ page.sdg }}</div>
</div>
</div>
The main change is the wrapper around the SDG image and text. (If you have a better class name, by all means!) The SDG title, now on its own, should be more easier to manage when working on responsive design.
I'm gonna approve this PR because you did come up with a 100% valid solution, but I also know it's good practice to avoid repeated code. If you do attempt to refactor your code and get stuck, feel free to reach out on Slack!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I concur with @jyaymie. The responsiveness from desktop down through mobile view is excellent. This is great work on a rather difficult Figma implementation
Seems like all that remains is the trade off between shipping changes faster vs completely DRY code.
@patrickohh leaving the decision up to you. Let us know if you are done and we'll merge it as is or if you'd like to take on the challenge of implementing Jamie's clever optimization we are here for that too! 👍
Made some changes to use only one div, but running into an issue where the description section of the card wraps down too much from the screen size shrinking. |
Made an attempt on taking @jyaymie recommendation. But running into a format issue with the description section of the card. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superb work on this one @patrickohh 👍
We really appreciate your willingness to take on the challenge of refactoring the html and css to be more concise than the original implementation.
Thank you for reviewing my code and offering suggestions along the way @jyaymie @MattPereira! |
Fixes #3547
What changes did you make and why did you make them ?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
Visuals after changes are applied